<?php

namespace lico\Tool\Exception;

use lico\Runtime\Response;

class RouteNotFoundException extends \Exception
{

    public function __construct($message, $code)
    {
        $message = '[System:RouteNotFound]：' . $message . "\r\n";
        $message .= $this->file . '：' . $this->line;
        parent::__construct($message, $code);
        Response::error($message);
    }
}
